home *** CD-ROM | disk | FTP | other *** search
- 0, In this demonstration you will see how to use the
- 5, Data Form Wizard in Visual InterDev to generate
- 9, Web pages that access a database. To start the Data
- 13, Form Wizard, from the File menu, click New. From
- 17, the File Wizards tab, select the Data Form Wizard
- 21, and enter a file name. The file name will be used
- 30, by the Data Form Wizard as a prefix for each of the
- 33, files that it creates. In the first step of the
- 37, Wizard, you specify the data connection to use and
- 40, the title you want to appear on your form.
- 45, Next, you specify the object that you want your form
- 48, to be based on. I'll choose Table and click Next.
- 54, I'll select the Students table and choose all
- 57, fields. From the Advanced button, you can specify
- 62, alternative text for a field label or a look-up
- 66, field. For example, the MajorID field in the Students
- 71, table is a number. The description for that major
- 75, is stored in the Majors table. On my form, rather
- 80, than displaying the number, I would like to display
- 83, the description. To do that, I set the look-up
- 86, table to Majors and set the display field to
- 89, Description, and click OK. The Edit Options page lets you
- 96, specify how you want your user to interact with
- 100, your form รน if you want the user to be able to
- 104, insert, modify, and delete records. I'll choose the
- 108, default options and click Next. From the viewing
- 113, options page, I can specify if the user can see this
- 117, in Form View or List View. Next, you choose the
- 123, theme for your page. I'll choose Bluerose. Click
- 128, Finish and Visual InterDev generates the files needed
- 132, for your application. Visual InterDev generates up
- 140, to three files. In my case, StudentsAction,
- 146, StudentsForm, and StudentsList. Let's preview the
- 153, StudentsList file. All of the records are displayed in
- 159, a table format. Command buttons are added to
- 163, enable the user to scroll backward and forward through
- 166, the table. Each record is a hyperlink. If I click
- 172, a record, a form is displayed for that specific
- 175, record. This form is provided by the StudentsForm
- 180, .asp file. From the form, I can change data and
- 187, click Update to save the data. When I click Update,
- 192, the record is saved and a feedback page is returned
- 196, indicating which record was updated. The feedback
- 200, page is provided by the StudentsAction.asp file.
- 205, So in this demonstration you have seen how to use
- 209, the Data Form Wizard to create Web pages that
- 213, enable a user to access a database.
- 217, END